* {
    box-sizing: border-box;
}
.wrapper {
    height: 100%;
    width: 100%;
    display: grid;
    padding-top: 10px; /* 在网格四周留空 */
    padding-bottom: 10px; /* 在网格四周留空 */
    box-sizing: border-box; /* 让 padding 计算在 height 内 */
    /*  声明列的宽度  */
    grid-template-columns: repeat(4, calc((80vw - 30px) / 4));
    /*  声明行间距和列间距  */
    gap: 10px;
    /*  声明行的高度  */
    grid-template-rows: repeat(3, calc((90vh - 20px) / 3));
    grid-template-areas:
                     "a a b c"
                     "a a d e"
                     "f g h i";
}
.tag {
    max-height: 100%;
    font-size: 0.75em; /* 让字体变小适应 */
    margin-right: 5px;
}
.text-span{
    padding: 0;
    margin: 0;
    max-height: 100%;
    font-size: 0.75em; /* 让字体变小适应 */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}
/* 以下为定制部分 */
.item1 {
    grid-area: a;
    display: flex;
    flex-direction: column;
}
.el-carousel,
.el-carousel-item {
    height: 100%; /* 确保 carousel 和 item 占满父容器的高度 */
}
.carousel-container {
    width: 100%;
    height: 90%; /* 轮播图占 90% 高度 */
}

.carousel-container-item{
    width: 100%;
    height: 100%;
}
.carousel-container-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-div{
    width: 100%;
    height: 10%;
}

.item2 {
    grid-area: b;
}

.item3 {
    grid-area: c;
}

.item4 {
    grid-area: d;
}

.item5 {
    grid-area: e;
}

.item6 {
    grid-area: f;
}

.item7 {
    grid-area: g;
}

.item8 {
    grid-area: h;
}

.item9 {
    grid-area: i;
}

.item-img {
    width: 100%;
    height: 80%;
    border-radius: 8px;
    overflow: hidden;
    object-fit: cover; /* 保证图片填充容器 */
}

.item-div1 {
    width: 100%;
    height: 20%;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.text-container {
    box-sizing: border-box;
    margin-top: 2px;
    margin-bottom: 2px;
    width: 100%;
    height: 70%; /* 高度为父容器的20% */
    color: rgb(24, 25, 28);
    font-size: 12px;
    font-family: "PingFang SC", "HarmonyOS_Medium";
    cursor: pointer;
    transition: color 0.3s ease;
}
.text-container:hover {
    color: #00a1d6; /* 悬停时变蓝色 */
}

.item-div2 {
    box-sizing: border-box;
    padding-top: 2px;
    padding-bottom: 2px;
    width: 100%;
    height: 30%;
    display: flex;
    justify-content: start;
    align-items: center;
}

/* 聊天模块 */
.wechat{
    position: fixed;
    top: 90%;
    right: 2.5%;
    width: 40px;
    height: auto;
    cursor: pointer;
}
.chat-dialog{
    position: fixed;
    top: 5vh ;
    left: 15% ;
    width: 70vw ;
    height: 90vh ;
    margin: 0 !important;
    border-radius: 50%;
}
.el-dialog{
    padding: 0;
}
.el-dialog__header{
    margin-bottom: 0;
    padding-bottom: 0;
}
.el-dialog__title{
    height: 0;
    display: flex;
    justify-content: center;
    font-size: 18px;
    align-items: center;
}
.el-dialog__body{
    display: flex !important;
    flex-direction: row!important;
    height: 100%;
}
.chat-dialog-left{
    height: 100%;
    width: 25%;
    border: 1px solid #ccc;
    overflow-y: auto;
    background-color: #e9e7e6;
}
.chat-dialog-left::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge 隐藏滚动条 */
}
/* 每个联系人项 */
.contact {
    width: 100%;
    height: 55px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 5px;
    margin-bottom: 5px;
    overflow-x: hidden;
    transition: all 0.2s ease-in-out;
}
.contact:hover {
    background-color: #f5f5f5; /* 悬浮时背景变浅 */
}
.contact.selected {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 选中时添加阴影 */
    background-color: #c4c4c6; /* 选中时背景变色 */
}
/* 头像样式 */
.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    margin-right: 10px;
}

/* 联系人信息 */
.contact-info {
    display: flex;
    flex-direction: column;
    width: 163px;
}

/* 联系人名称 */
.contact-name {
    font-weight: bold;
}

/* 消息内容和时间 */
.contact-message {
    width: 163px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

/* 消息内容部分 */
.message-content {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 防止内容过长换行 */
}

/* 时间部分 */
.message-time {
    width: 60px;
    text-align: right;
    font-size: 12px;
    color: #999;
}

.chat-dialog-right{
    height: 100%;
    width: 75%;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-left: none;
}
.chat-dialog-right-header{
    height: 10%;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #ccc;
    padding-left: 5px;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
}
.chat-dialog-right-main{
    height: 60%;
    width: 100%;
    background-color: #f5f5f5;
    box-sizing: border-box;
    border-bottom: 1px solid #ccc;
    overflow-y: auto;
}
.chat-dialog-right-main::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge 隐藏滚动条 */
}
.message-right-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;   /* 启用垂直滚动条 */
}
/* 隐藏滚动条 */
.message-right-container::-webkit-scrollbar {
    display: none;
}
.message-right-content-friend {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
}
.message-right-content-self {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.message-right-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer; /* 可选：让头像看起来像是可点击的 */
}

.message-right-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.custom-popover{
    width: 280px !important;
    height: 400px !important;
    padding: 0!important;
}
.user-info {
    width: 280px;
    height: 400px;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.user-info-header{
    width: 90%;
    height: 30%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ececec;
}
.user-info-header-left{
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.user-info-header-right{
    width: 70%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.user-info-avatar {
    width: 75px;
    height: 75px;
    border-radius: 10px;
}
.user-info-remark{
    width: 100%;
    color: #232323;
    box-sizing: border-box;
    padding-left: 10px;
    text-align: left;
    font-weight: normal;
    font-size: 16px;
    margin-top: 4px;
}
.user-info-nickname {
    width: 100%;
    box-sizing: border-box;
    padding-left: 10px;
    text-align: left;
    color: #ababab;
    margin-top: 4px;
}
.user-info-username {
    width: 100%;
    box-sizing: border-box;
    padding-left: 10px;
    color: #ababab;
    text-align: left;
    margin-top: 4px;
}
.user-info-area{
    width: 100%;
    box-sizing: border-box;
    padding-left: 10px;
    color: #ababab;
    text-align: left;
    margin-top: 4px;
}
.user-info-remark-area{
    text-align: left;
    width: 90%;
    height: 20%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ececec;
}
.user-info-remark2{
    width: 100%;
    text-align: left;
    font-weight: bold;
    margin-top: 5px;
}
.remark-label1 {
    color: #ababab;
    font-weight: normal;
}

.remark-content1 {
    color: #000; /* 用户备注内容的颜色 */
    box-sizing: border-box;
    font-weight: normal;
    margin-left: 60px;
}
.user-info-signature-area{
    text-align: left;
    width: 90%;
    height: 20%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ececec;
}
.user-info-signature{
    width: 100%;
    text-align: left;
    font-weight: bold;
    margin-top: 5px;
}
.remark-label2 {
    color: #ababab;
    font-weight: normal;
}

.remark-content2 {
    color: #000; /* 用户备注内容的颜色 */
    font-weight: normal;
    box-sizing: border-box;
    margin-left: 30px; /* 让单词间隔变大 */
}
.user-info-icon-area{
    width: 90%;
    height: 30%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px; /* 设置间距 */
}
.icon-img1,.icon-img2{
    width: 25px;
    height: auto;
}
.icon-img3{
    width: 30px;
    height: auto;
}
.message-right-bubble {
    max-width: 80%;
    height: 50px;
    box-sizing: border-box;
    margin-top: 5px;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}
.friend{
    width: 100%;
    display: flex;
    margin-bottom: 15px;
    flex-direction: row;
}
.self{
    width: 100%;
    display: flex;
    margin-bottom: 15px;
    flex-direction: row-reverse;
}
.friend .message-right-bubble {
    background-color: white;
    border: 1px solid #ddd;
    color: #333;
}

.self .message-right-bubble {
    background-color: #4CAF50; /* 绿色气泡 */
    color: white;
}
.chat-dialog-right-footer{
    height: 35%;
    width: 100%;
    background-color: #f5f5f5;
}
.footer-functional-area{
    width: 100%;
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.footer-functional-area-img{
    margin-left: 25px;
    height: 20px;
    width: auto;
    cursor: pointer; /* 鼠标变成点击手型 */
    transition: box-shadow 0.2s ease-in-out; /* 过渡动画 */
}
.emoji-container span,
.emoji-toggle-img {
    cursor: pointer; /* 鼠标变成点击手型 */
    transition: box-shadow 0.2s ease-in-out; /* 过渡动画 */
}

.emoji-container span:hover,
.emoji-toggle-img:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* 悬停时增加阴影 */
    border-radius: 5px; /* 让阴影更自然 */
}

.footer-input{
    width: 100%;
    height: 65%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.el-textarea{
    width: 90%!important;
    height: 100%;
}
.footer-send{
    width: 100%;
    height: 20%;
    display: flex;
    flex-direction: row-reverse;
    box-sizing: border-box;
    padding-right: 28px;
    padding-bottom: 15px;
}
.footer-send-button{
    width: 80px;
    height: 30px;
}
.notice-dialog .el-dialog__body{
    height: 400px;
    display: flex;
    flex-direction: column!important;
    align-items: center;
    justify-content: center;
}
.notice-dialog .dialog-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 20px;
}

.notice-dialog .dialog-header .el-icon {
    color: #66b1ff;
    margin-right: 8px;
    font-size: 20px;
}

.notice-dialog .dialog-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    font-size: 16px;
    text-align: start;
    padding: 0 20px;
}

.notice-dialog .dialog-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
